﻿using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.Administration;

namespace Winnow.SharepointDesigner.Layouts.Winnow.SharepointDesigner
{
    public partial class Features : LayoutsPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                //using (SPSite ospsite = new SPSite(SPContext.Current.Web.Url))
                //{
                //    using (SPWeb ospweb = ospsite.OpenWeb())
                //    {
                //        foreach (var item in ospweb.Features)
                //        {
                //            //item.Definition.n
                //        }
                grdFeaters.DataSource = SPFarm.Local.FeatureDefinitions;
                grdFeaters.AutoGenerateColumns = false;
                grdFeaters.DataBind();
                //    }
                //}
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);

            }
        }
    }
}
